]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
appDisplay: Skip animation when hidden
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 26 Jul 2019 01:04:38 +0000 (01:04 +0000)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 6 Aug 2019 12:52:41 +0000 (14:52 +0200)
The time computation isn't just unnecessary in that case, it's likely
wrong as well: If we don't have a valid allocation, we may well end
up with a negative value, NaN or Infinity.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/654

js/ui/appDisplay.js

index b26951e3ca3ab9ffb51b5877fbeef6193b60475a..cec1d602b0e4342a167a8479f5cef081b27d1c1c 100644 (file)
@@ -463,6 +463,12 @@ var AllView = class AllView extends BaseAppView {
         if (this._displayingPopup && this._currentPopup)
             this._currentPopup.popdown();
 
+        if (!this.actor.mapped) {
+            this._adjustment.value = this._grid.getPageY(pageNumber);
+            this._pageIndicators.setCurrentPage(pageNumber);
+            return;
+        }
+
         let velocity;
         if (!this._panning)
             velocity = 0;